package com.tyk.bookstore.front.storage.util;


import com.tyk.bookstore.front.storage.model.entity.WarehouseDo;
import com.tyk.bookstore.front.storage.model.vo.WarehouseVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

@Mapper(componentModel = "spring")
public interface MapStructStorage {
    @Mappings({@Mapping(target = "areaName", ignore = true), @Mapping(target = "userName", ignore = true)})
    WarehouseVo toWarehouseVo(WarehouseDo warehouse);
}
